-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print Preview #243
base: version-14
Are you sure you want to change the base?
Print Preview #243
Conversation
can you please explain what should I do in this task?
|
@viralkansodiya For this task, I'll move it into its own ticket. It involves adding some dependencies. |
@viralkansodiya I am getting a Content Not Found Error that's coming from one or both of the print formats. Can you take a look at this? |
@agritheory I hope you are testing this print preview PR in version 14 |
@agritheory can you send me some more details? or if we can connect on call, so I can fix it quickly. |
* remove print Get pdf * fetch all payment entry preview in one single preview * override a print button * print page breake issue resolve * print on specific url * fix: Url of print * PDF Button override * on draft stage only allow check run default print format * on draft stage only allow check run default print format * if check run in draft then print should show msg * remove unrelevent controll * ci: track overrides por Payment Entry (#248) * on change of doctype change list of print format * change the preview and print view on change of selcted options * render pdf base on selected print_sel * create new print format 'Check Run' * remove standard formats * added a background image in check format * set the size of check format background image * back ground image only allow in print not in pdf * Confirm print pop up * Secondary print format added * remove background image in pdf * reformat by pre-commit * Change syntex * closed the window after action on print window --------- Co-authored-by: Francisco Roldán <[email protected]>
a0128e9
to
b0fc0a8
Compare
@viralkansodiya I was able to solve the content not found issue. Please update the "Example Voucher" print format so that it is sensitive to overflow (secondary print format feature), this is the comma separated list of source documents. |
@agritheory example voucher is already there in my pull request |
@agritheory this should be close. I wasn't sure what to add for the no-print background image. Latest commits include:
Potentially outstanding:
|
Refactored the print format selection to a dynamic link |
Latest push fixes a couple things, but here are a few observations in testing this:
The latest change with the page break at the end of the print format seems to conform the preview and actual PDF page breaks, but I'm only testing when the Check Run Setting secondary print format field is blank. |
@agritheory - just reviewed this again - should be good to go. The new condition to render references as a list (if the Check Run Settings has a secondary print format set) gets rid of the overflow problem. I made one small tweak in latest commits to cover the case where if the number of references in the Payment Entry is > 6 (regardless of the Secondary Print Format value in CR Settings), then it renders as a comma-separated list, too. I used 6 because that's what the preview page real estate seemed to max out at before there were the overflow issues. |
To do:
Screenshot / Playwright test for primary, secondary and summary print view(move to separate issue)increment_print_count
workflow